package cn.itsource.zcn.pet.domain;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

/**
 * (TPet)实体类
 *
 * @author makejava
 * @since 2021-08-23 11:32:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Pet implements Serializable {
    private static final long serialVersionUID = -19835315075520667L;

    private Long adopt_id;

    private Long id;

    private String name;

    private String resources;

    private Double saleprice;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss",timezone = "GMT+8")
    private Date onsaletime;
    /**
     * 状态：0下架 1上架
     */
    private Long state;

    private String costprice;
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss",timezone = "GMT+8")
    private Date createtime;
    /**
     * 类型id
     */
    private Long type_id;
    /**
     * 店铺Id 如果被领养店铺id为null
     */
    private Long shop_id;
    /**
     * 如果被领养为领养用户id
     */
    private Long user_id;

    private PetDetail detail;


}
